﻿@page "/account/forgotpasswordconfirmation"

@inject IStringLocalizer<ForgotPasswordConfirmation> L
@inject ILogger<ForgotPasswordConfirmation> Logger

<PageTitle>@Title</PageTitle>


<MudText Typo="Typo.h4" GutterBottom="true">@L["Check Your Inbox"]</MudText>


@if(ResetPasswordLink is not null)
{
    <MudText>@L["For testing purposes, you can directly access the password reset link below."]</MudText>
    <MudButton Href="@ResetPasswordLink" Variant="Variant.Filled" Color="Color.Primary" Size="Size.Large">
        <MudText>@L["Go to Reset Password"]</MudText>
    </MudButton>
}
else
{
    <MudText Typo="Typo.body1">@L["If an account with the provided email exists, a password reset link has been sent. Please check your inbox and spam folder."]</MudText>
}


@code {
    public const string PageUrl = "/account/forgotpasswordconfirmation";
    public string Title = "Forgot password confirmation";
    [SupplyParameterFromQuery] private string? ResetPasswordLink { get; set; }
    protected override void OnInitialized()
    {
        Title = L["Forgot password confirmation"];
    }

}